from position.models import Position
from position.models import Categories
from django.contrib import admin
#class ServiceInline(admin.StackedInline):
#    model = Service
#    extra = 1

class CategoriesAdmin(admin.ModelAdmin):
    fieldsets = [
        (None,               {'fields': ['name', 'status_id']}),
        ('Icon', {'fields': ['icon'], 'classes': ['collapse']})
    ]
#    inlines = [ServiceInline]

    list_filter = ['name']
    search_fields = ['name']
admin.site.register(Categories, CategoriesAdmin)
